package com.c.c_common.mvp.ui;

import android.content.Context;

import androidx.annotation.NonNull;

import com.abb.base_common.mvp.contract.BaseContract;


public abstract class MvpFragment<Presenter extends BaseContract.Presenter> extends CFragment implements BaseContract.View<Presenter> {

    protected Presenter mPresenter;

    protected abstract Presenter initPresenter();

    @Override
    public void onAttach(@NonNull Context context) {
        super.onAttach(context);
        mPresenter = initPresenter();
    }

    @Override
    public void showError(int str) {

    }

    @Override
    public void showLoading() {

    }

}
